<!doctype html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>选择用户身份登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/login.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
</head>

<body class="login-bg">

    <div class="login layui-anim layui-anim-up">
        <div class="message">请选择您的登入入口</div>
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <li class="layui-this">前往后台管理员系统</li>
                <li>前往院校系统</li>
                <li>前往团队系统</li>
                <li>前往评委系统</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div id="darkbannerwrap"></div>
                    <form method="post" class="layui-form">
                        <input name="username" placeholder="管理员用户名" type="text" lay-verify="required" class="layui-input">
                        <hr class="hr15">
                        <input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input">
                        <hr class="hr15">
                        <input value="登录" lay-submit lay-filter="admin" style="width:100%;" type="submit">
                        <hr class="hr20">
                    </form>
                </div>
                <div class="layui-tab-item">


                    <div id="darkbannerwrap"></div>

                    <form method="post" class="layui-form">
                        <input name="username" placeholder="院校用户名" type="text" lay-verify="required" class="layui-input">
                        <hr class="hr15">
                        <input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input">
                        <hr class="hr15">
                        <div onclick="xadmin.open('院校注册','./sch-forgetpass.html',490,410)" class="zhuce">注册</div>
                        <div onclick="xadmin.open('重置密码','./sch-password.html',490,410)" class="forget">忘记密码?</div>
                        <input value="登录" lay-submit lay-filter="school" style="width:100%;" type="submit">
                        <hr class="hr20">
                    </form>
                </div>

                <div class="layui-tab-item">
                    <div id="darkbannerwrap"></div>
                    <form method="post" class="layui-form">
                        <input name="username" placeholder="团队用户名" type="text" lay-verify="required" class="layui-input">
                        <hr class="hr15">
                        <input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input">
                        <hr class="hr15">
                        <div onclick="xadmin.open('团队注册','./sch-forgetpass.html',490,410)" class="zhuce">注册</div>
                        <div onclick="xadmin.open('重置密码','./sch-password.html',490,410)" class="forget">忘记密码?</div>
                        <input value="登录" lay-submit lay-filter="team" style="width:100%;" type="submit">
                        <hr class="hr20">
                    </form>
                </div>
                <div class="layui-tab-item">
                    <div id="darkbannerwrap"></div>
                    <form method="post" class="layui-form">
                        <input name="username" placeholder="评委用户名" type="text" lay-verify="required" class="layui-input">
                        <hr class="hr15">
                        <input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input">
                        <hr class="hr15">
                        <div onclick="xadmin.open('评委注册','./sch-forgetpass.html',490,410)" class="zhuce">注册</div>
                        <div onclick="xadmin.open('重置密码','./sch-password.html',490,410)" class="forget">忘记密码?</div>
                        <input value="登录" lay-submit lay-filter="teacher" style="width:100%;" type="submit">
                        <hr class="hr20">
                    </form>
                </div>
            </div>
        </div>
    </div>

    <script>
        $(function() {
            layui.use('form', function() {
                var form = layui.form;
                //监听提交
                form.on('submit(admin)', function(data) {
                    layer.msg(JSON.stringify(data.field), function() {
                        location.href = 'index.html'
                    });
                    return false;
                });
                form.on('submit(school)', function(data) {
                    layer.msg(JSON.stringify(data.field), function() {
                        location.href = 'index-sch.html'
                    });
                    return false;
                });
                form.on('submit(team)', function(data) {
                    layer.msg(JSON.stringify(data.field), function() {
                        location.href = 'index-team.html'
                    });
                    return false;
                });
                form.on('submit(teacher)', function(data) {
                    layer.msg(JSON.stringify(data.field), function() {
                        location.href = 'index-tea.html'
                    });
                    return false;
                });
            });
        })


        layui.use('element', function() {
            var element = layui.element;

            //获取hash来切换选项卡，假设当前地址的hash为lay-id对应的值
            var layid = location.hash.replace(/^#test1=/, '');
            element.tabChange('test1', layid); //假设当前地址为：http://a.com#test1=222，那么选项卡会自动切换到“发送消息”这一项

            //监听Tab切换，以改变地址hash值
            element.on('tab(test1)', function() {
                location.hash = 'test1=' + this.getAttribute('lay-id');
            });
        });
    </script>
    <!-- 底部结束 -->
</body>

</html>